package com.LGF.Book.biz;

import com.LGF.Book.bean.MemberType;
import com.LGF.Book.dao.MemberTypeDao;

import java.sql.SQLException;
import java.util.List;

public class MemberTypeBiz {
    MemberTypeDao memberTypeDao = new MemberTypeDao();
    /**
     * 调用Dao中getAll方法
     * @return
     */
    public List<MemberType> getAll() {
        try {
            return memberTypeDao.getAll();
        } catch (SQLException e) {
            e.printStackTrace();
            return null;
        }
    }

}
